<?php

namespace fq\request\param;


/**
 * API CODE: sourcecode.rates.url
 *
 * @author auto create
 * @since 1.0, 2021.09.09
 */
class SourcecodeRatesUrl
{

	private $template_id;
	private $apiParas = array();

	public function getApiInterfaceName()
	{
		return "sourcecode.rates.url";
	}

	public function getApiMethodName()
	{
		return "POST";
	}

	/**
	 * 模板id（get_source_list接口返回的sourcecode_id字段）
	 * @param $template_id
	 */
	public function setTemplateId($template_id)
	{
		$this->template_id = $template_id;
		$template_id && $this->apiParas["template_id"] = $template_id;
	}

	/**
	 * 淘宝联盟账号ID
	 * @param $tb_name
	 */
	public function setTbName($tb_name)
	{
		$tb_name && $this->apiParas['tb_name'] = $tb_name;
	}

	/**
	 * 淘宝联盟pid
	 * @param $tb_pid
	 */
	public function setTbPid($tb_pid)
	{
		$tb_pid && $this->apiParas['tb_pid'] = $tb_pid;
	}

	/**
	 * 淘宝关系ID
	 * @param $relation_id
	 */
	public function setRelationId($relation_id)
	{
		$relation_id && $this->apiParas['relation_id'] = $relation_id;
	}

	/**
	 * 京东联盟账号ID
	 * @param $jd_union
	 */
	public function setJdUnion($jd_union)
	{
		$jd_union && $this->apiParas['jd_union'] = $jd_union;
	}


	/**
	 * 京东联盟PID
	 * @param $jd_pid
	 */
	public function setJdPid($jd_pid)
	{
		$jd_pid && $this->apiParas['jd_pid'] = $jd_pid;
	}


	/**
	 * 京东渠道
	 * @param $jd_channel
	 */
	public function setJdChannel($jd_channel)
	{
		$jd_channel && $this->apiParas['jd_channel'] = $jd_channel;
	}

	/**
	 * 拼多多联盟PID
	 * @param $pdd_pid
	 */
	public function setPddPid($pdd_pid)
	{
		$pdd_pid && $this->apiParas['pdd_pid'] = $pdd_pid;
	}


	/**
	 * 多多进宝ID
	 * @param $pdd_union
	 */
	public function setPddUnion($pdd_union)
	{
		$pdd_union && $this->apiParas['pdd_union'] = $pdd_union;
	}

	/**
	 * 唯品会PID
	 * @param $wph_pid
	 */
	public function setWphPid($wph_pid)
	{
		$wph_pid && $this->apiParas['wph_pid'] = $wph_pid;
	}

	/**
	 * 唯品会open_id
	 * @param $wph_nickname
	 */
	public function setWphNickname($wph_nickname)
	{
		$wph_nickname && $this->apiParas['wph_nickname'] = $wph_nickname;
	}


	public function getApiParas()
	{
		return $this->apiParas;
	}

	public function check()
	{

	}

	public function putOtherTextParam($key, $value)
	{
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
